<% content_for :top do %>
<br />
<span style="font-weight:bold;font-size:16px;padding-left:12px;">Use WinPoints to buy free Wins</span><br/><br/>

<center>
<table class="lister" style="width:75%"> 
<thead style="text-align:center;">
    <td>Description</td>
    <td>Cost (WinPoints)</td>
    <td></td>
</thead>
<tbody>
<tr><td style="text-align:left;">&nbsp;&nbsp;Only&nbsp;&nbsp;<span style="display:inline-block; vertical-align:middle"><%=image_tag"13wins.png"%></span>&nbsp;&nbsp;required for next streak</td><td>500</td><td>
<%if current_user.bought_win?%>
   <%=image_tag"sold.gif"%>
<%else%>
   <%=link_to "Buy",only_buy_wins_path,:class=>"buy-wins",:style=>"font-weight:bold;background:url(#{facebook_image_url('orange_header.gif')}) repeat-x;",:confirm=>'Are you sure?'%>
<%end%>
</td></tr>
<tr><td style="text-align:left;">&nbsp;&nbsp;Free&nbsp;&nbsp;<span style="display:inline-block; vertical-align:middle">
<%=image_tag"win.png"%></span>&nbsp;&nbsp;for current streak</td><td><%=PointConfig.find_by_name_and_level("free",@level).point if PointConfig.find_by_name_and_level("free",@level)%></td>
<td><%=link_to "Buy",free_buy_wins_path + "?level=" + @level.to_s,:class=>"buy-wins",:style=>"font-weight:bold;background:url(#{facebook_image_url('orange_header.gif')}) repeat-x;",:confirm=>'Are you sure?'%></td>
</tr></tbody></table>
</center>


<br/><center><hr width="25%" size="0.5px" color="#a7a7a7"></center><br/><br/>
<span style="font-weight:bold;font-size:16px;padding-left:12px;">Invite friends to earn WinPoints</span><br/><br/>

<center>
<table style="margin:5px;">
<tr><td valign=top>
Online friends
<fb:chat-invite msg="Challenge you to 13wins (this is not spam): http://apps.facebook.com/<%=@app_name%>/invited/from_chat?id=<%=current_user.id%>" condensed="false" exclude_ids="<%=@installed_friends%>"/>
</br></td>
<td style="width:10px;">
</td>
<td valign=top>
Offline friends
<%= render :partial=>"users/invite" %></br>
<table class="lister">
<tr>Invitations Sent: <%=current_user.invitation_sent_number.to_i%></tr></br>
<tr>Accepted Invitations: <%=current_user.invitation_accept_number.to_i%></tr>
</table>
</td>
<td style="width:10px;">
</td>
<td>

<table class='key' style="width:97%;margin-bottom:150px">
<tr><td>
	<span style="font-style:italic;font-size:10px;">Earn Online (recommended):</span>
</tr></td>
<tr><td>
	500 WinPoints per accepted invite
</tr></td>
<tr><td><center><hr width="98%" size="0.5px" color="#D8DFEA"></center></td></tr>
<tr><td>
	<span style="font-style:italic;font-size:10px;">Earn Offline:</span>
</tr></td>
<tr><td>
	50 WinPoints per sent invite
</tr></td>
<tr><td>
	450 WinPoints per accepted invite
</tr></td>
</table>
</center>
</td>
</tr>
</table>
<br/><center><hr width="25%" size="0.5px" color="#a7a7a7"></center><br/><br/>
<% end %><center>
<fb:iframe marginheight=0 marginwidth=0 height=600 width=744 border=0 scrolling='yes' FRAMEBORDER=0 src='http://www.adparlor.com/Incentivized/OfferWall.aspx?appId=5307783&uid=<%=current_user.id%>'></fb:iframe>
<br/><br/>
<fb:iframe src="http://super.kitnmedia.com/super/offers?h=lxufnr.08767782947&uid=<%=current_user.id%>" frameborder="0" width="744" height="1000" scrolling="yes"></fb:iframe>
</center>
</br>
